﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true"
    CodeFile="DataList.aspx.cs" Inherits="DataList" Title="Veyron CRM" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="CrmControls" Namespace="CrmControls" TagPrefix="cc1" %>
<%@ Register Assembly="ComponentArt.Web.UI" Namespace="ComponentArt.Web.UI" TagPrefix="ComponentArt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <script type="text/javascript" language="javascript">
        function Grid1_ItemDoubleClick(sender, eventArgs)
        {
          var item = eventArgs.get_item();
          var idCust = item.Cells[0].Value;
          var adres=document.getElementById("hdn").value;
          if(adres=='Admin/Poslar')
          {
          var id2=item.Cells[1].Value;
          window.open(''+adres+'.aspx?id=' + idCust +'&id2='+id2+ '','_blank','width=700,height=650,scrollbars=1');
          }
          else if(adres=="Admin/Donem")
          {
          var id2=item.Cells[1].Value;
          window.open(''+adres+'.aspx?id=' + idCust +'&id2='+id2+ '','_blank','width=700,height=650,scrollbars=1');
          }
          else
          window.open(''+adres+'.aspx?id=' + idCust + '','_blank','width=700,height=650,scrollbars=1');
        }
        function AdresGonder(parametre)
        {
         document.getElementById("hdn").value=parametre;
        }
      
    </script>

    <script type="text/javascript">

    </script>

    <div>
        <table>
            <tr>
                <td>
                    <input type="hidden" id="hdn" />
                    <div id="ListeHarf">
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lbl_Hesap" runat="server" Text="Hesap Bul :" Style="margin-left: 3px"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFiltre" runat="server" Width="150px" Style="margin-left: 3px"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnGo" runat="server" Text="Ara" OnClick="btnGo_Click" />
                                </td>
                                <td>
                                    <asp:Label ID="lblView" runat="server" Text="View :" Style="margin-left: 3px"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="drpFiltre" runat="server" Width="171px" Style="margin-left: 3px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="ToolBar">
                        <table>
                            <tr>
                                <td style="width: 650px">
                                </td>
                                <td>
                                    <asp:ImageButton ID="newcustomer" AlternateText="Yeni Kayıt" runat="server" ImageUrl="~/images/page/newrecord.gif" />
                                </td>
                                <td>
                                    <cc1:CrmExcelButton ID="btnexcel" runat="server" ImageUrl="~/images/page/excel.gif" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <ComponentArt:Grid ID="Grid1" runat="server" EnableViewState="true">
                        <ClientEvents>
                            <ItemDoubleClick EventHandler="Grid1_ItemDoubleClick" />
                        </ClientEvents>
                    </ComponentArt:Grid>
                </td>
            </tr>
            <tr>
                <td>
                    <div id="ToolBar">
                        <asp:Panel ID="pnlAltMenu" runat="server">
                            <table>
                                <tr>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbAll" runat="server" Text="Hepsi"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbSharp" runat="server" Text="#"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbA" runat="server" Text="a"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbB" runat="server" Text="b"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbC" runat="server" Text="c"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbD" runat="server" Text="d"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbE" runat="server" Text="e"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbF" runat="server" Text="f"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbG" runat="server" Text="g"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbH" runat="server" Text="h"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbI" runat="server" Text="i"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbJ" runat="server" Text="j"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbK" runat="server" Text="k"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbL" runat="server" Text="l"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbM" runat="server" Text="m"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbN" runat="server" Text="n"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbO" runat="server" Text="o"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbP" runat="server" Text="p"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbR" runat="server" Text="r"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbS" runat="server" Text="s"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbT" runat="server" Text="t"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbU" runat="server" Text="u"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbV" runat="server" Text="v"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbW" runat="server" Text="w"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbY" runat="server" Text="y"></asp:LinkButton>
                                    </td>
                                    <td style="width: 22px">
                                        <asp:LinkButton ID="lbZ" runat="server" Text="z"></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
